home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / TIME_ZON / CNOBJECT.H < prev    next >
Text File  |  1991-11-08  |  811b  |  26 lines

  1. /* CNObject.h
  2.  
  3.     The class CNObject is the class of all objects which have a name, which
  4.     is kept in the variable name. It knows how to respond to any questions
  5.     or needs involving a name.
  6. */
  7.  
  8. #define _H_CNObject
  9.  
  10. #include "CObject.h"
  11.  
  12. struct CNObject : CObject {
  13.     char name[40];                // Here's the name
  14.     
  15.     void    INObject(void);        // Initialize
  16.     void    DisposeComplete(void);    // Dispose of the object
  17.     Boolean    Edit(void);            // Edit the object (needs overriding)
  18.     
  19.     void    SetName(char *);    // Give it a new name
  20.     void    GetName(char *);    // Find out its name
  21.     int        CompareName(char *);    // LT, GT, or EQ?
  22.     Boolean    NameEquals(char *);        // Are these names the same?
  23.     Boolean    PartEquals(char *);        // Are these names the same to the shorter length?
  24.     Boolean    NameGreater(char *);    // Is the object's name greater than this one?
  25. };
  26.